/**
 * @file gpio_ctrl.h
 * @synopsis  
 * @author wen wjcapple@163.com
 * @version 1.0
 * @date 2017-02-14
 */
#ifndef	_GPIO_CTRL_H 
#define _GPIO_CTRL_H 

#include "global.h"
#include "otdr_ch.h"
#ifdef __cplusplus
extern "C" {
#endif

int32_t open_gpio();
int32_t read_gpio_val(int32_t fd,char buf[], int32_t bytes);
int32_t write_gpio_val(int32_t fd, int32_t val);
int32_t get_gpio_fd(const char *env_name,int32_t mod);

#ifdef __cplusplus
	}
#endif

#endif

